package ventanas;

import javax.swing.JFrame;
import java.awt.GridBagLayout;
import javax.swing.JLabel;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import java.awt.Font;
import javax.swing.JPasswordField;
import javax.swing.JButton;

public class VentanaIntroducirPin extends JFrame{
	private JPasswordField passwordField;
	public VentanaIntroducirPin() {
		setTitle("Introducir PIN");
		GridBagLayout gridBagLayout = new GridBagLayout();
		gridBagLayout.columnWidths = new int[]{0, 0, 0, 78, 88, 0};
		gridBagLayout.rowHeights = new int[]{0, 0, 0, 49, 0, 0, 0, 0, 0};
		gridBagLayout.columnWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
		gridBagLayout.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};
		getContentPane().setLayout(gridBagLayout);
		
		JLabel lblIntroduzcaSuCdigo = new JLabel("Introduzca su c\u00F3digo PIN");
		lblIntroduzcaSuCdigo.setFont(new Font("Tahoma", Font.PLAIN, 18));
		GridBagConstraints gbc_lblIntroduzcaSuCdigo = new GridBagConstraints();
		gbc_lblIntroduzcaSuCdigo.insets = new Insets(0, 0, 5, 5);
		gbc_lblIntroduzcaSuCdigo.gridx = 2;
		gbc_lblIntroduzcaSuCdigo.gridy = 2;
		getContentPane().add(lblIntroduzcaSuCdigo, gbc_lblIntroduzcaSuCdigo);
		
		JButton btnOk = new JButton("OK");
		GridBagConstraints gbc_btnOk = new GridBagConstraints();
		gbc_btnOk.fill = GridBagConstraints.BOTH;
		gbc_btnOk.insets = new Insets(0, 0, 5, 0);
		gbc_btnOk.gridx = 4;
		gbc_btnOk.gridy = 3;
		getContentPane().add(btnOk, gbc_btnOk);
		
		passwordField = new JPasswordField();
		GridBagConstraints gbc_passwordField = new GridBagConstraints();
		gbc_passwordField.insets = new Insets(0, 0, 5, 5);
		gbc_passwordField.fill = GridBagConstraints.HORIZONTAL;
		gbc_passwordField.gridx = 2;
		gbc_passwordField.gridy = 4;
		getContentPane().add(passwordField, gbc_passwordField);
		
		JButton btnSalir = new JButton("Salir");
		GridBagConstraints gbc_btnSalir = new GridBagConstraints();
		gbc_btnSalir.insets = new Insets(0, 0, 0, 5);
		gbc_btnSalir.gridx = 3;
		gbc_btnSalir.gridy = 7;
		getContentPane().add(btnSalir, gbc_btnSalir);
	}

	
}
